package org.execute.tool.键鼠工具;
// ====================== 1. 命令类型枚举（不变）======================

public enum CommandType {
    MOVE_TO("移动到指定坐标", new String[]{"x", "y"}),
    MOVE_RELATIVE("相对当前位置移动", new String[]{"dx", "dy"}),
    MOUSE_CLICK("鼠标点击", new String[]{"button"}),
    TYPE_TEXT("输入文本", new String[]{"text"}),
    PRESS_KEY("按下单个键", new String[]{"key"}),
    PRESS_COMBINATION("按下组合键", new String[]{"modifiers", "key"}),
    DELAY("操作延迟", new String[]{"delayMs"});

    private final String desc;
    private final String[] requiredParams;

    CommandType(String desc, String[] requiredParams) {
        this.desc = desc;
        this.requiredParams = requiredParams;
    }

    public String getDesc() {
        return desc;
    }

    public String[] getRequiredParams() {
        return requiredParams;
    }
}

